package metier;


/**
 * @author BAROUTY, FRAISSE, MAGLOIRE, MARTINEAU, TEIXEIRA, VIVIER 
 *
 */

public class Mesure {

	private Integer idMesure ;
	private Integer idAquarium;
	private String dateMesure ;
	private float ph ;
	private float kh ;
	private float gh ;
	private float no2 ;
	private float no3 ;
	private float cl ;
	private float fe ;
	private float co2 ;
	private float o2 ;
	
	
	
	
	

	public Integer getIdMesure() {
		return idMesure;
	}

	public void setIdMesure(Integer idMesure) {
		this.idMesure = idMesure;
	}

	public Integer getIdAquarium() {
		return idAquarium;
	}

	public void setIdAquarium(Integer idAquarium) {
		this.idAquarium = idAquarium;
	}

	public String getDateMesure() {
		return dateMesure;
	}

	public void setDateMesure(String string) {
		this.dateMesure = string;
	}

	public float getPh() {
		return ph;
	}

	public void setPh(float ph) {
		this.ph = ph;
	}

	public float getKh() {
		return kh;
	}

	public void setKh(float kh) {
		this.kh = kh;
	}

	public float getGh() {
		return gh;
	}

	public void setGh(float gh) {
		this.gh = gh;
	}

	public float getNo2() {
		return no2;
	}

	public void setNo2(float no2) {
		this.no2 = no2;
	}

	public float getNo3() {
		return no3;
	}

	public void setNo3(float no3) {
		this.no3 = no3;
	}

	public float getCl() {
		return cl;
	}

	public void setCl(float cl) {
		this.cl = cl;
	}

	public float getFe() {
		return fe;
	}

	public void setFe(float fe) {
		this.fe = fe;
	}

	public float getCo2() {
		return co2;
	}

	public void setCo2(float co2) {
		this.co2 = co2;
	}

	public float getO2() {
		return o2;
	}

	public void setO2(float o2) {
		this.o2 = o2;
	}
	
	

	public Mesure(Integer idAquarium, String dateMesure, float ph, float kh, float gh, float no2,
			float no3, float cl, float fe, float co2, float o2) {
		super();
		this.dateMesure = dateMesure;
		this.ph = ph;
		this.kh = kh;
		this.gh = gh;
		this.no2 = no2;
		this.no3 = no3;
		this.cl = cl;
		this.fe = fe;
		this.co2 = co2;
		this.o2 = o2;
	}

	public Mesure() {
		super();
	}
	
	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		sb.append("------Fiche de la Mesure : ------"+"\n");
		sb.append("Identifiant : "+idMesure+"\n");
		sb.append("Date de la mesure : "+dateMesure+"\n");
		sb.append("Mesure du ph : "+ph+"\n");
		sb.append("Mesure du kh : "+kh+"\n");
		sb.append("Mesure du gh : "+gh+"\n");
		sb.append("Mesure du no2 : "+no2+"\n");
		sb.append("Mesure du no3 : "+no3+"\n");
		sb.append("Mesure du cl : "+cl+"\n");
		sb.append("Mesure du fe : "+fe+"\n");
		sb.append("Mesure du co2 : "+co2+"\n");
		sb.append("Mesure du o2 : "+o2+"\n");
		return sb.toString();
		}
	
}
